package com.sx.micowell.framework.tools

import android.util.Log
import android.widget.TextView
import com.google.android.material.tabs.TabLayout

/**
 * @Description
 * @Author 梁浩文
 * @Date 2021/8/27 16:56
 */
fun TabLayout.TabView.getTextView():TextView{
    val tabClass = TabLayout.TabView::class.java
    var declaredField = tabClass.getDeclaredField("textView")
    declaredField.isAccessible=true
    var textView = declaredField.get(this) as TextView
    return textView
}